from django.urls import path,re_path
from . import views

urlpatterns = [
    # 群查分类
    path('category', views.CategoryListAPIView.as_view()),
    # 群查地区
    path('region', views.RegionListAPIView.as_view()),
    # 群查类型
    path('type', views.TypeListAPIView.as_view()),
    # 群查年份
    path('period', views.PeriodListAPIView.as_view()),

    # 获取视频信息接口
    path('video', views.VideoListAPIView.as_view()),
    # 获取视频剧集接口
    re_path('section/(?P<pk>\d+)$', views.VideoSectionAPIView.as_view()),
    # 获取排行榜接口
    path('leaderboard', views.LeaderboardAPIView.as_view()),
    # 获取VIP视频接口
    path('vip_video', views.VipVideoListAPIView.as_view()),
    # 保存用户观看记录
    path('save/record', views.SaveRecordAPIView.as_view()),
]
